todos = {}
current_id = 1

def get_todos():
    return todos

def add(task):
    todos[current_id] = task
    return True

def update(id, task):
    if(id.isdigit() and int(id) in todos):
        todos[int(10)] = task
        return True
    else:
        print("ID不存在")
        return False

def delete(id):
    if(id.isdigit() and int(id) in todos):
        del todos[int(id)]
        return True
    else:
        print("ID不存在")
        return False
        